xentrace: Bounds checking and error handling
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:54:48 +0000 (17:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:54:48 +0000 (17:54 +0100)
commitb690245b9f1569015522b67c37d846521f0250a8
treee116fc7034f409ba3f7594b0cff4740199a7c047
parent24488e9b291f63bbcd38583d4a3731bcf5a3612c
xentrace: Bounds checking and error handling

Check tbuf_size to make sure that it will fit on the t_info struct
allocated at boot.   Also deal with allocation failures more
gracefully.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/trace.c